<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); 

if (!isset($model->time)) {
	$time_from = date('Y-m-01');
	$time_to = date('Y-m-d H:i:s');
	$model->time=$time_from.'|'.$time_to;
}
?>

	<div class="row">
		<?php echo $form->label($model,'time'); ?>
		<?php echo $form->textField($model,'time'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'service_id'); ?>
		<?php echo $form->textField($model,'service_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'world_in'); ?>
		<?php echo $form->textField($model,'world_in'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'world_out'); ?>
		<?php echo $form->textField($model,'world_out'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'ukraine_in'); ?>
		<?php echo $form->textField($model,'ukraine_in'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'ukraine_out'); ?>
		<?php echo $form->textField($model,'ukraine_out'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'cost'); ?>
		<?php echo $form->textField($model,'cost',array('size'=>12,'maxlength'=>12)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'packet_id'); ?>
		<?php echo $form->textField($model,'packet_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'is_aggregated'); ?>
		<?php echo $form->textField($model,'is_aggregated'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton(Yii::t('main','Search')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- search-form -->